package com.felight.ems.collections;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Employee1 {
	String name;
	
	public String getName(){
		return name;
	}
	
	
	public Employee1(String name){
		
		this.name=name;
	}
	
	public String toString(){
		return this.name;
	}
	
	public static void main(String[] args) {
		Object[] employee = new Object[5];
		List<Object> emp = new ArrayList<Object>(Arrays.asList(employee));
		emp.add(0,"A");
		emp.add(2,"B");
		emp.add(4,"C");
		emp.add(6,"D");
		emp.add(8,"E");
		System.out.println(emp);
	}

}
